package c0907m.group2.aitsm.core.report;

import c0907m.group2.aitsm.util.Helper;
import c0907m.group2.aitsm.util.Settings;

import java.util.Date;

/**
 * Author: LongDH
 * Date: 5/6/11
 * Time: 4:01 PM
 * <p/>
 * Create report for Schedules.
 */
public class ScheduleReporter extends StudentReporter {

    public ScheduleReporter() {
        this.filename = Settings.SCHEDULE_LIST_REPORT;
    }

    /**
     * Create report for a particular day.
     *
     * @param date the date to report. Default today.
     */
    public void hasDate(Date date) {
        params.put("date", "'" + Helper.fromDate(date) + "'");
    }
}
